@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="contente">

            <input type="hidden" id="id" value="">

            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="name" name="名称" underline="true"/>
                    <#input id="startTime" name="事故发生时间"  type="text" underline="true" />
                    <#input id="interruptionTime" name="中断时间(分钟)" underline="true" />
                    <#selectDict id="interruptionType" name="中断类型"  code="interruption_type" underline="true"/>
                    <#input id="trainNumber" name="车次" underline="true" />
                    <#input id="trapPeoNum" name="影响人数"  />

                </div>

                <div class="col-sm-6">
                    <#input id="accidentTypeName" name="事故类型" underline="true"
                            hidden="accidentTypeId" readonly="readonly"
                            clickFun="AccidentInfoDlg1.showAccidentTypeSelectTree(); return false;"
                            style="background-color: #ffffff !important;"
                            selectFlag="true" selectId="accidentTypeTreeDiv" selectTreeId="accidentTypeTree"
                            selectStyle="width:244px !important;"/>
                    <#input id="lineName" name="事故线路" underline="true"
                            hidden="lineId" readonly="readonly"
                            clickFun="AccidentInfoDlg1.showLineTree(); return false;"
                            style="background-color: #ffffff !important;"
                            selectFlag="true" selectId="lineTreeDiv" selectTreeId="lineTree"
                            selectStyle="width:244px !important;"/>
                    <#input id="stationName" name="事故地点" underline="true"
                            hidden="stationId" readonly="readonly"
                            clickFun="AccidentInfoDlg1.showStationTree(); return false;"
                            style="background-color: #ffffff !important;"
                            selectFlag="true" selectId="stationTreeDiv" selectTreeId="stationTree"
                            selectStyle="width:244px !important;"/>
                    <#selectDict id="accidentLevel" name="事故级别" code="responseLevel" underline="true"  />
                    <#input id="emergencyName" name="突发事件类型" underline="true"
                            hidden="emergencyId" readonly="readonly"
                            clickFun="AccidentInfoDlg1.showEmergencySelectTree(); return false;"
                            style="background-color: #ffffff !important;"
                            selectFlag="true" selectId="emergencyTreeDiv" selectTreeId="emergencyTree"
                            selectStyle="width:244px !important;"/>
                    <#input id="emergencyproId" name="突发事件属性"   clickFun="AccidentInfoDlg1.emergencyPropertySel()"/>
                </div>
            </div>

            <div id="itemsArea">
                <#button btnCss="info" name="添加处置流程" icon="fa-plus" clickFun="AccidentInfoDlg1.addDispoalprocess()"/>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check"
                            clickFun="AccidentInfoDlg1.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser"
                            clickFun="AccidentInfoDlg1.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script type="text/template" id="itemTemplate">
    <div class="row" name="dictItem" id="dictItem">
        <div class="col-md-2">
            <div class="form-group">
                <label class="col-sm-5 control-label">步骤：</label>
                <div class="col-sm-7">
                    <input type="text" id="step"  name="step" class="form-control" required="" aria-required="true"/>
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-3 control-label">时间：</label>
                <div class="col-sm-9">
                    <input type="text" id="time"  name="time" class="form-control" required="" aria-required="true"/>
                </div>
            </div>
        </div>
        <div class="col-md-5">
            <div class="form-group">
                <label class="col-sm-3 control-label">处置操作：</label>
                <div class="col-sm-9">
                    <input type="text" id="disposalTask" name="disposalTask" class="form-control" required="" aria-required="true"/>
                </div>
            </div>
        </div>
        <div class="col-md-2">
            <#button btnCss="danger" name="删除" id="cancel" icon="fa-remove"
                    clickFun="AccidentInfoDlg1.deleteItem(event)"/>
        </div>
    </div>
</script>
<script>
    laydate.render({
        elem: '#startTime'
        ,type: 'datetime'
    });
</script>
<script src="${ctxPath}/static/modular/yjya/accident/accident_info.js"></script>
@}
